
import request from '@/utils/request'

const api = {
  create: '/t1/point_option/create',
  lists: '/t1/point_option/list',
  edit: '/t1/point_option/edit',
  changeStatus: '/t1/point_option/change_status',
  del: '/t1/point_option/del',
  info: '/t1/point_option/info'
}

// 积分选项
export function lists (parameter) {
  return request({
    url: api.lists,
    method: 'get',
    params: parameter
  })
}
// 积分选项
export function info (parameter) {
  return request({
    url: api.info,
    method: 'get',
    params: parameter
  })
}
// 创建积分选项
export function create (parameter) {
  return request({
    url: api.create,
    method: 'post',
    data: parameter
  })
}
// 编辑积分选项
export function edit (parameter) {
  return request({
    url: api.edit,
    method: 'post',
    data: parameter
  })
}
// 修改状态
export function changeStatus (parameter) {
  return request({
    url: api.changeStatus,
    method: 'post',
    data: parameter
  })
}

// 删除
export function del (parameter) {
  return request({
    url: api.del,
    method: 'post',
    data: parameter
  })
}
